import React from "react"
import { useParams } from "react-router-dom"
//这个组件它的props上有API吗?有

const OrderInfo=()=>{
    const params=useParams()
    return(
        
        <div>订单的基本信息：{params.id}</div>
    )
}
const OrderGoodList=()=>(<div>商品的详细列表</div>)

export default props => {
    console.log('订单详情',props);
    return (
        <div>
            <h1>订单详情</h1>
            <OrderInfo></OrderInfo>
            <OrderGoodList/>
        </div>
    )
}